<script setup lang="ts">
import Header from '../layout/Header.vue'
import Left from '../layout/Left.vue'
import Foot from '../layout/Foot.vue'
</script>

<template>
  <div id="app">
    <div class="container">
      <!-- 头部 -->
      <Header/>

      <div class="holy-grail">
        <div class="main-content">
          <!-- 中间内容区  -->
          <main class="center">
            <router-view/>
          </main>

          <!-- 左侧边栏 -->
          <Left/>

        </div>
        <!-- 底部 -->
          <Foot/>
      </div>
    </div>
  </div>
</template>

<style scoped>
/* 圣杯布局核心样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 20px;

}

/* 圣杯布局核心样式 */
.holy-grail {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-content {
  display: flex;
  flex: 1;
}

.card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.card p {
  color: #34495e;
  line-height: 1.6;
}

.sidebar-section h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
}

.sidebar-section h3 i {
  margin-right: 10px;
}

.nav-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.2);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.center {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  order: 2;
  min-height: 400px;

  box-sizing: border-box;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
  }
  .center {
    order: 1;
  }
}
</style>